package com.rljk.domain.po;

import com.alibaba.fastjson.JSONObject;
import com.rljk.common.consts.AssetConst;
import com.rljk.utils.Tools;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.SortedMap;
import java.util.TreeMap;

/**
 * Author:   YASUO
 * Date:     2018/7/27 11:07
 * Description:数字资产
 */
@Slf4j
@Data
public class TrustSqlDigitalAssets {

    private TreeMap<String,Object> map;


    public TrustSqlDigitalAssets() {

        map = new TreeMap<String, Object>();
        //固定请求参数
        map.put("version", AssetConst.version);
        map.put("sign_type",AssetConst.sign_type);
        map.put("mch_id",AssetConst.mch_id);
        //固定业务参数
        map.put("node_id",AssetConst.node_id);//节点ID
        map.put("chain_id",AssetConst.chain_id);//链ID
        map.put("ledger_id",AssetConst.ledger_id);//账本ID
        map.put("timestamp",System.currentTimeMillis()/1000);
    }

}
